package com.tanhua.dubbo.api.mongo;


import com.tanhua.domain.mongo.Movement;
import com.tanhua.domain.vo.PageResult;
import org.bson.types.ObjectId;

public interface MovementApi {
    String saveMovement(Movement movement);

    PageResult queryFriendMovements(Long userId, Integer page, Integer pagesize);

    PageResult queryRecommendMovements(Long userId, Integer page, Integer pagesize);

    PageResult queryMyselfMovements(Long userId, Integer page, Integer pagesize);


    Movement queryMovementById(String movementId);

    PageResult queryUserMovements(Long uid, Integer page, Integer pagesize, Integer state);

    void updateStateById(Integer state, String movementId);


    void updateMovementPass(Movement movement);

    void updateMovementReject(Movement movement);
}